package com.lesson15.strategy;

/**
 * @author 朝花不迟暮
 * @version 1.0
 * @date 2020/9/18 19:49
 */
public class WildDuck extends Duck
{
    public WildDuck()
    {
        flyBehavior = new GoodFlyBehavior();
    }

    @Override
    public void display()
    {
        System.out.println("这是野鸭！");
    }
}
